package com.tyk.bookstore.back.logistics.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 快递公司
 */
@Schema(name = "ExpressCompanyDo", description = "快递公司")
@Data
@TableName("express_company")
public class ExpressCompanyDo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "简称")
    @TableField("brief_name")
    private String briefName;

    @Schema(description = "公司名称")
    @TableField("full_name")
    private String fullName;

    @Schema(description = "收费[单位：元/千克]")
    @TableField("charge")
    private BigDecimal charge;

    @Schema(description = "描述")
    @TableField("description")
    private String description;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
